package com.robusta.app.page;

public class UserFixture {
    LoginPageFixture loginPage;
    private UserFixture() {}
    public static UserFixture aUser() {
        return new UserFixture();
    }

    public UserFixture accessesLoginPage(LoginPageFixture loginPage) {
        this.loginPage = loginPage; return this;
    }

    public UserFixture entersCredentials(String user, String password) {
        this.loginPage.withCredentials(user, password);
        return this;
    }

    public UserFixture andLogsIn() {
        this.loginPage.login();
        return this;
    }
}
